//
//  YJDynamicVC.m
//  YJB
//
//  Created by 高卫明 on 16/5/28.
//  Copyright © 2016年 YJB. All rights reserved.
//

#import "THDynamicVC.h"
#import "THDynamicCell.h"


@interface THDynamicVC ()

@end

@implementation THDynamicVC
- (void)viewDidLoad
{
    [super viewDidLoad];
    
    self.tableView.rowHeight = 130;
    self.tableView.tableFooterView = [UIView new];
    //注册cell
    [self.tableView registerNib:[UINib nibWithNibName:NSStringFromClass([THDynamicCell class]) bundle:nil] forCellReuseIdentifier:dynamicCellID];
}

- (void)backItemClick
{
    [self dismissViewControllerAnimated:YES completion:nil];
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 10;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{

    THDynamicCell *cell = [tableView dequeueReusableCellWithIdentifier:dynamicCellID];
    return cell;
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    [tableView deselectRowAtIndexPath:indexPath animated:YES];
}



@end
